import pandas as pd
import numpy as np
from scipy import stats

def comprehensive_describe(series):
    """为单个序列计算全面的特征统计"""
    return pd.Series({
        '数量': series.count(),
        '均值': series.mean(),
        '中位数': series.median(),
        '众数': series.mode().iloc[0] if not series.mode().empty else np.nan,
        '标准差': series.std(),
        '方差': series.var(),
        '极差': series.max() - series.min(),
        '四分位距': series.quantile(0.75) - series.quantile(0.25),
        '偏度': series.skew(),
        '峰度': series.kurtosis(),
        '变异系数': series.std() / series.mean(),
        '缺失值数量': series.isnull().sum()
    })